(dired-insert-directory): When looking for existing
authorAndreas Schwab <schwab@suse.de>
Sat, 12 Oct 2002 23:30:22 +0000 (23:30 +0000)
committerAndreas Schwab <schwab@suse.de>
Sat, 12 Oct 2002 23:30:22 +0000 (23:30 +0000)
indentation, goto OPOINT instead of beginning of buffer.

lisp/dired.el

index 6aebd08d4875c790899a48e223d4b9eb7b0fffda..e26447fbd2f9c0d13bbba5048007520f0a133f25 100644 (file)
@@ -701,7 +701,7 @@ If HDR is non-nil, insert a header line with the directory name."
     ;; If we used --dired and it worked, the lines are already indented.
     ;; Otherwise, indent them.
     (unless (save-excursion
-             (beginning-of-buffer)
+             (goto-char opoint)
              (looking-at "  "))
       (let ((indent-tabs-mode nil))
        (indent-rigidly opoint (point) 2)))